<% placeholders = { project_or_group_name: member_source.human_name, project_or_group: member_source.model_name.singular, role: member.present.human_access} %>

<% if member.created_by %>
<%= s_('InviteEmail|%{inviter} invited you to join the %{project_or_group_name} %{project_or_group} with the following role: %{role}.') % placeholders.merge({ inviter: sanitize_name(member.created_by.name) }) %>
<% else %>
<%= s_('InviteEmail|You have been invited to join the %{project_or_group_name} %{project_or_group} with the following role: %{role}.') % placeholders %>
<% end %>
<%= _('This is a %{role_type} role.') % { role_type: member.present.role_type }  %>

<%= s_('InviteEmail|Join now') %>: <%= invite_url(@token) %>
